<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>iview test</title>

    <script src="../../js/vue.js"></script>
    <script src="../../js/iview/iview.min.js"></script>
    <link rel="stylesheet" href="../../js/iview/iview.css">
</head>
<body>

<div id="app">
    <i-button @click="show">Click me!</i-button>
    <Modal v-model="visible" title="Welcome">Welcome to iView</Modal>
</div>
<script>

    new Vue({
        el: '#app',
        data: {
            visible: false
        },
        methods: {
            show: function () {
                this.visible = true;
            }
        }
    })
</script>

</body>
</html>